import {PerKey} from "../../library/permissionConst"
export const menus = [
  {
    id: "/workspace",
    icon: "layui-icon-engine",
    title: "工作空间",
    permissionKey:"allPass",
    children: [
      {
        id: "/workspace/index",
        icon: "layui-icon-tree",
        title: "控制台",
        permissionKey:"allPass"
      }
    ]
  },
  {
    id: "/system",
    icon: "layui-icon-set",
    title: "系统管理",
    permissionKey:"allPass",
    children: [
      {
        id: "/system/config",
        icon: "layui-icon-util",
        title: "系统设置",
        permissionKey:PerKey.Config_Index
      },
      {
        id: "/system/attment",
        icon: "layui-icon-upload-circle",
        title: "附件管理",
        permissionKey:PerKey.Attment_Index
      },
      {
        id: "/system/cache",
        icon: "layui-icon-time",
        title: "缓存管理",
        permissionKey:PerKey.Cache_Index
      }
    ]
  },
  {
    id: "/auth",
    icon: "layui-icon-group",
    title: "权限管理",
    permissionKey:"allPass",
    children: [
      {
        id: "/auth/dept",
        icon: "layui-icon-friends",
        title: "部门管理",
        permissionKey:PerKey.UserDept_Index
      },      
      {
        id: "/auth/post",
        icon: "layui-icon-username",
        title: "岗位管理",
        permissionKey:PerKey.UserPost_Index
      },
      {
        id: "/auth/usergroup",
        icon: "layui-icon-group",
        title: "角色管理",
        permissionKey:PerKey.UserGroup_Index
      },
      {
        id: "/auth/user/list",
        icon: "layui-icon-user",
        title: "用户管理",
        permissionKey:PerKey.User_Index
      },
      {
        id: "/auth/user/userchange",
        icon: "layui-icon-chat",
        title: "个人信息",
        permissionKey:PerKey.User_UserChange
      }
    ]
  },
  {
    id: "/systemlog",
    icon: "layui-icon-chart-screen",
    title: "日志管理",permissionKey:PerKey.Log_Index,
    children: [
      {
        id: "/systemlog/log",
        icon: "layui-icon-templeate-one",
        title: "数据日志",permissionKey:PerKey.Log_Index
      },
      {
        id: "/systemlog/logLogin",
        icon: "layui-icon-engine",
        title: "登录日志",permissionKey:PerKey.Log_Index
      }
    ]
  },
  {
    id: "/content",
    icon: "layui-icon-home",
    title: "网站管理",
    permissionKey:"allPass",
    children: [
      {
        id: "/content/category",
        icon: "layui-icon-friends",
        title: "栏目管理",
        permissionKey:PerKey.ContentCate_Index
      },{
        id: "/content/content",
        icon: "layui-icon-home",
        title: "内容管理",
        permissionKey:PerKey.Content_Index
      }
    ]
  },
  {
    id: "/notice",
    icon: "layui-icon-notice",
    title: "通知管理",
    permissionKey:"allPass",
    children: [
      {
        id: "/notice/addoredit",
        icon: "layui-icon-transfer",
        title: "发送信息",
        permissionKey:PerKey.Notice_AddOrEdit
      },
      {
        id: "/notice/getlist",
        icon: "layui-icon-email",
        title: "收到信息",
        permissionKey:PerKey.Notice_Index
      },{
        id: "/notice/postlist",
        icon: "layui-icon-read",
        title: "已发信息",
        permissionKey:PerKey.Notice_Index
      }
    ]
  }
]